package com.unicom.shenzhen.sgip.handler;

import com.unicom.shenzhen.sgip.pdu.SgipPdu;
import com.unicom.shenzhen.sgip.util.SgipPduCodec;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;

/**
 * Created by BR on 17/11/7.
 *
 * @author <a href="mailto:wangjiacheng@szunicom.com">Jiacheng Wang</a>
 */
public class SgipSessionPduEncoder extends MessageToByteEncoder<SgipPdu> {

	@Override
	protected void encode(ChannelHandlerContext context, SgipPdu message, ByteBuf out) throws Exception {
		SgipPduCodec.encode(message, out);
	}
}
